package com.work.example.demo5.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.work.example.demo5.Mapper.CategoryMapper;
import com.work.example.demo5.domain.CategoryEntity;
import com.work.example.demo5.service.CategoryService;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, CategoryEntity> implements CategoryService {

    @Override
    public int getcategoryId(String name) {
        return baseMapper.getcategoryId(name);
    }

    @Override
    public int removecategory(Long id) {
        return baseMapper.removecategory(id);
    }

    @Override
    public int updatecategory(CategoryEntity categoryEntity) {
        return baseMapper.updatecategory(categoryEntity);
    }
}
